﻿@{
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
    ViewBag.Title = "网非e学院--申请讲师";
}
<div style="margin-top:20px; text-align:center">
    <img src="~/Image/logoJiangshi.jpg" style="width:90%;" />
</div>

<div class="ap_Apply">
    每一位父母都应该是一名合格的家庭教育老师，秉持这个理念，网非全力打造了一款亲子在线学习的直播平台：网非网络学院。如果您是儿童教育领域的专家、学者，某一艺术领域的出色人才，教育类媒体人或者是热心家庭教育的专业人士，我们诚挚的邀请您加入我们的讲师团队！
</div>
<br />
<form id="formApply" method="post">
    <div class="weui_cells weui_cells_form">
        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">真实姓名</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="真实姓名" name="RealName" id="txtRealName">
            </div>
        </div>

        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">现居城市</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="现居城市" name="City" id="txtCity">
            </div>
        </div>

        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">身份证号</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="身份证号" name="IDCard" id="txtIDCard">
            </div>
        </div>

        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">联系方式</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="联系方式" name="Phone" id="txtPhone">
            </div>
        </div>

        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">担任职位</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="担任职位" name="Position" id="txtPosition">
            </div>
        </div>

        <div class="weui_cell">
            <div class="weui_cell_hd"><label class="weui_label">联系时间</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" placeholder="联系时间" name="Time" id="txtTime">
            </div>
        </div>

        <div class="weui_cells weui_cells_form">
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <div class="weui_cell_hd"><label class="weui_label">个人简历</label></div>
                    <textarea class="weui_textarea" placeholder="个人简历" rows="3" name="Reason" id="txtReson"></textarea>
                    <div class="weui_textarea_counter"><span>0</span>/200</div>
                </div>
            </div>
        </div>

        <div class="weui_btn_area">
            <div id="errorInfo" class="error">
                @ViewBag.ErrorInfo
            </div>
            <span class="customBtn" onclick="Apply()">点击提交</span>
            <br /><br />
            <div style="text-align:center;font-size:13px;">填写表单后我们会在三个工作日内联系您。</div>
            <br /><br />
        </div>
    </div>
</form>

<script>

    function Apply() {

        if ($("#txtRealName").val() == "") {
            $("#errorInfo").html("请输入真实姓名！");
            return;
        }

        if ($("#txtCity").val() == "") {
            $("#errorInfo").html("请输入现居城市！");
            return;
        }

        if ($("#txtIDCard").val() == "") {
            $("#errorInfo").html("请输入身份证号！");
            return;
        }

        if ($("#txtPhone").val() == "") {
            $("#errorInfo").html("请输入联系方式！");
            return;
        }

        if ($("#txtPosition").val() == "") {
            $("#errorInfo").html("请输入担任职位！");
            return;
        }

        if ($("#txtTime").val() == "") {
            $("#errorInfo").html("请输入联系时间！");
            return;
        }


        if ($("#txtReson").val() == "") {
            $("#errorInfo").html("请输入个人简历！");
            return;
        }

        $("#formApply").submit();
    }
    //底部导航选中
    $("#ImgWode").attr("src", "../../Image/logoWodeSel.png");
</script>
